<%-- 
    Document   : errorPage
    Created on : Oct 24, 2012, 5:12:54 PM
    Author     : berto
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@page isErrorPage="true"%>
<!DOCTYPE html>
                    <%
                    String error_message="unable to find a description of your error.";
                    if(request.getAttribute("error_message")!=null){
                        error_message=(String)request.getAttribute("error_message");
                    }else if(session.getAttribute("error_message")!=null){
                        error_message=(String)session.getAttribute("error_message");
                        session.removeAttribute("error_message");
                    }
                    %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <title>Error page</title>
    </head>
    <body>
           <div class="content">
                    <h2>Error</h2>
                <div id="utilities">
                    <p>Error description:</p>
                </div>  
                    <br/>
                    <p><%=error_message%></p>
            </div>
    </body>
</html>
